package com.lyy.lottery.service;

import com.lyy.lottery.controller.param.DrawPrizeParam;
import com.lyy.lottery.controller.param.ShowWinningRecordsParm;
import com.lyy.lottery.dao.dataobject.WinningRecordDO;
import com.lyy.lottery.service.dto.WinningRecordDTO;

import java.util.List;

public interface DrawPrizeService {

    //异步抽奖接口
    void drawPrize(DrawPrizeParam param);

    //校验抽奖请求
    boolean checkDrawPrizeParam(DrawPrizeParam param);

    //保存中奖者名单
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    //删除中奖记录
    void deleteRecords(Long activityId, Long prizeId);

    //获取中奖记录
    List<WinningRecordDTO> getRecords(ShowWinningRecordsParm param);
}
